package com.atguigu.headline.service;

import com.atguigu.headline.pojo.NewsUser;

/**
 * @ Author     ：侯耀祖
 * @ Description：
 */
public interface NewsUserService {
    /**
     * 根据用户账号查询用户
     * @param username
     * @return 找到返回NewsUser对象，负责null
     */
    NewsUser findByUsername(String username);

    /**
     *
     * @param userId
     * @return
     */
    NewsUser findByUid(Integer userId);

    /**
     *
     * @param registUser
     * @return
     */
    Integer registUser(NewsUser registUser);
}
